package com.example.fszq.volleydemo1.utils;

import android.content.Context;
import android.util.Log;

import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;

/**
 * Created by fszq on 2015/12/2.
 * 此类用于调用volley函数库，访问c2000服务器，并且获得返回值
 */
public class Requesttoserver {
    private RequestQueue mQueue;

    //初始化连接池
    public RequestQueue getRequestQueue(Context ctx) {
        if (mQueue == null) {
            mQueue = Volley.newRequestQueue(ctx);
        }

        return mQueue;
    }

}
